//
//  AXFAddressCell.m
//  adress
//
//  Created by 候锐 on 16/11/19.
//  Copyright © 2016年 候锐. All rights reserved.
//

#import "AXFAddressCell.h"
#import "AXFAddressModel.h"
@interface AXFAddressCell()
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *phoneNumber;
@property (weak, nonatomic) IBOutlet UILabel *address;

@end
@implementation AXFAddressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    // Initialization code
}
- (void)setModel:(AXFAddressModel *)model{

    _model = model;
    _name.text = model.name;
    _phoneNumber.text = model.phoneNumber;
    _address.text = model.detailsAdd;
  
}
- (IBAction)changeButton:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(AXFAddressCell:withChangeBtn:)]) {
        [self.delegate AXFAddressCell:self withChangeBtn:sender];
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
